<template>
    <v-btn @click="handleClick(web?.url)" prepend-icon="mdi-web">
        {{ web.title }}
        <v-tooltip activator="parent" location="top">{{ web?.desc || '默认提示' }}</v-tooltip>
    </v-btn>
</template>

<script setup lang='ts'>
import type { menuType, websiteType } from '@/service/types';

const router = useRouter();

const props = defineProps<{
    web: websiteType,
}>();

const handleClick = (url: string) => {
    router.push(url);
};
</script>
<style scoped lang='scss'></style>